package sis;

import java.util.HashMap;
import java.util.Map;
import java.util.Random;

public class app {

	public static void main(String[] args) {
		String [] redItems = {"01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33"
			
		};
		
		String[] blueItems = {"01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16"
				};
		
		Map<String,String> items = new HashMap<String,String>();
		
		StringBuffer buffer = new StringBuffer();
		
		for(int i=0;i<=6;i++) {
			int r= new Random().nextInt(redItems.length);
			String code = redItems[r];
			
			if(!items.containsKey(code)) {
				items.put(code, code);
				if(i==5) {
					buffer.append(code + " ");
				}else {
					buffer.append(code + " ");
				}
			}
			
		}
		
		int r1= new Random().nextInt(blueItems.length);
		String blue = blueItems[r1];
		buffer.append(blue);
		
		System.out.println(buffer);
		
		}
}
